package com.wit.service.impl;

import java.util.List;

import com.wit.dao.WorklogDao;
import com.wit.po.Worklog;
import com.wit.service.WorklogService;

public class WorklogServiceImpl implements WorklogService {

	WorklogDao worklogDao;
	
	
	public boolean addWorklog(Worklog worklog) {
		
		return worklogDao.addWorklog(worklog);
	}

	public Worklog getWorklogById(Integer logId) {
		
		return worklogDao.getWorklogById(logId);
	}

	
	public List<Worklog> getWorklogList(String employeeId, String date) {
		
		return worklogDao.getWorklogList(employeeId, date);
	}

	
	public boolean removeWorklog(Worklog worklog) {
		
		return worklogDao.removeWorklog(worklog);
	}

	
	public boolean updateWorklog(Worklog worklog) {
		
		return worklogDao.updateWorklog(worklog);
	}

	/********************** Getters and Setters *************************/
	
	public WorklogDao getWorklogDao() {
		return worklogDao;
	}

	public void setWorklogDao(WorklogDao worklogDao) {
		this.worklogDao = worklogDao;
	}

}
